Site Radio And TV
Using Jamroom
izhmel:
Can you send me the code to copy and paste ?
Thanks
So you want to create links to different genres that play in a single player on a page by itself? ie. yoursite.com/dubmusic_player/rock would open a page with a player that played all songs in the rock genre?
If so, create a template named dubmusic_player.tpl and add this code.
{assign var="selected" value="stand_alone_palyer"}
{assign var="no_inner_div" value="true"}
{jrCore_include template="header.tpl"}
<div class="container">
{* FEATURED TABS *}
<div class="row">
<div class="col12 last">
<div class="menu_tab">
<div id="default" class="p_choice fartist" onclick="jrLoad('#sm','{$jamroom_url}/index_artists');jrSetActive('
<div id="s_song" class="p_choice fsong" onclick="jrLoad('#sm','{$jamroom_url}/index_songs');jrSetActive('
<div id="s_video" class="p_choice fvideo" onclick="jrLoad('#sm','{$jamroom_url}/index_videos');jrSetActive('
<div class="clear"></div>
</div>
<div class="finner mb8">
<div id="sm"></div>
</div>
</div>
</div>
{* PLAYER *}
<div class="row">
<div class="col12 last">
<div class="inner leader mb8 mr8">
<span class="title">{$_conf.jrCore_system_name} Player</span>
</div>
<div class="inner mb8">
{if isset($_post.option) && strlen($_post.option) > 0}
{jrCore_media_player type="jrAudio_black_overlay_player" module="jrAudio" field="audio_file" search1="profile_quota_id IN 1,2,3" search2="audio_genre = `$_post.option`" order_by="audio_title random" limit="50" autoplay=true}
{else}
{jrCore_media_player type="jrAudio_black_overlay_player" module="jrAudio" field="audio_file" search1="profile_quota_id IN 1,2,3" order_by="audio_title random" limit="50" autoplay=true}
{/if}
</div>
</div>
</div>
{jrTags_cloud height="350" assign="tag_cloud"}
{if strlen($tag_cloud) > 0}
<div class="row">
<div class="col12 last">
<div class="inner mb10">
<div class="inner leader">Tag Cloud</div>
<div class="item">{$tag_cloud}</div>
</div>
</div>
</div>
{/if}
{* SITE STATS *}
{if isset($_conf.jrNova_show_stats) && $_conf.jrNova_show_stats == 'on'}
<div class="row">
<div class="col12 last">
<div class="inner">
<div class="inner leader">
<span class="capital">{jrCore_lang skin=$_conf.jrCore_active_skin id="42" default="stats"}</span> -
{capture name="template" assign="stats_tpl"}
{literal}
{foreach $_stats as $title => $_stat}
<span class="media_title">• {$title}: {$_stat.count}</span>
{/foreach}
{/literal}
{/capture}
{jrCore_stats template=$stats_tpl}
</div>
</div>
</div>
</div>
{/if}
</div>
{jrCore_include template="footer.tpl"}
Then the links to that would be something like:
http://dubmusic.com/bubmusic_player/rock
You'll also want to change the quota id's in the jrCore_media_player functions.
search1="profile_quota_id IN 1,2,3"
Hope this helps!
updated by @douglas: 01/23/17 02:23:47PM